package com.vhall.component.controller.preparation;


import com.vhall.component.controller.preparation.facade.InviteAdminFacade;
import com.vhall.component.entity.preparation.vo.GetInviteCardReqVO;
import com.vhall.component.entity.preparation.vo.GetInviteCardRespVO;
import com.vhall.component.entity.preparation.vo.JoinInviteCardReqVO;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.plugin.common.annotation.VssTokenAuth;
import com.vhall.component.service.preparation.InviteCardService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author guoxin.wang
 * @date 2021/7/8 15:30
 */
@VhallComponent
public class InviteAdminController implements InviteAdminFacade {

    @Autowired
    private InviteCardService inviteCardService;

    @VssTokenAuth
    @Override
    public GetInviteCardRespVO getInviteCard(GetInviteCardReqVO reqVO) {
        return inviteCardService.getInviteCard(reqVO);
    }

    @VssTokenAuth
    @Override
    public Boolean joinInvite(JoinInviteCardReqVO reqVO) {
        return inviteCardService.joinInvite(reqVO);
    }

}
